<template>
  <!-- 详情 -->
  <div :class="detailBox">
    <div class="item1">
      <h3 class="title">{{ detail.title }}</h3>
    </div>
    <div class="item2">
      <span v-if="detail.corporate" class="corporate">{{ detail.corporate }}</span>
      <div v-if="detail.score" class="score">评分 ：{{ detail.score }}</div>
    </div>
    <div class="item3">
      <div>年份：{{ detail.year }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
      <div>地区：{{ detail.are }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
      <div>集数：共{{ detail.total }}集</div>
    </div>
    <div class="item4">
      <div>导演：{{ detail.director }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
      <div :style="{ width: size == 'height' ? '575px' : '350px' }">主演：{{ detail.actor }}</div>
    </div>
    <div class="item5">
      <div class="intr">简介：{{ introduction }}</div>
      <div class="btn">展开全部</div>
    </div>
    <div class="item6">
      <div class="play">播放</div>
      <div class="collect">收藏</div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    size: {
      type: String,
      default: 'height'
    },
    detailBox: {
      type: String,
      default: ""
    },
    detail: {
      type: Object,
      default: () => { }
    },
    introduction: {
      type: String,
      default: ""
    }
  },
  data() {
    return {

    }
  },
  computed: {},
  watch: {},
  created() { },
  mounted() { },
  updated() { },
  methods: {},
  filters: {},
}
</script>

<style lang="scss" scoped>
.item1 {
  .title {
    font-size: 24px;
  }
}

.item2 {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .corporate {
    color: #174c8e;
    background-color: #41bff2;
    font-size: 18px;
    padding: 3px 5px;
    border-radius: 15px;
  }

  .score {
    font-size: 20px;
    color: #ffde00;
  }
}

.item3,
.item4 {
  display: flex;
  margin-top: 15px;
  font-size: 20px;
}

.item5 {
  display: flex;
  margin-top: 15px;
  font-size: 20px;
  position: relative;

  .intr {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /*弹性伸缩盒子*/
    -webkit-box-orient: vertical;
    /*子元素垂直排列*/
    -webkit-line-clamp: 3;
    /*可以显示的行数，超出部分用...表示*/
  }

  .btn {
    width: 100px;
    height: 30px;
    line-height: 28px;
    color: #519ac4;
    text-align: center;
    position: absolute;
    right: 0;
    top: 55px;
    border: 1px solid;
    border-radius: 5px;
  }
}

.item6 {
  display: flex;
  margin-top: 15px;
  font-size: 28px;

  .play,
  .collect {
    width: 125px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #5dace0;
    border-radius: 5px;
  }

  .collect {
    margin-left: 30px;
  }
}
</style>